This example shows how to use the .Net WebBrowser Control to browse the internet. It is a very simple example and you can see how easy it is to incorporate web browser functionality into your .Net application.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "MyWebBrowser"
TextBox1.Text = "http://www.madarong.com"
End Sub
'Browser to a specific url with the Web Browser Control
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text.Trim)
End Sub
End Class
« Leave Comment »

